package com.eco.fanliapp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eco.fanliapp.dao.AppOrderIntegralMapper;
import com.eco.fanliapp.entity.AppOrderDetail;
import com.eco.fanliapp.entity.AppOrderIntegral;
import com.eco.fanliapp.service.IAppOrderIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-12-25
 */
@Service
public class AppOrderIntegralServiceImpl extends ServiceImpl<AppOrderIntegralMapper, AppOrderIntegral> implements IAppOrderIntegralService {

    @Autowired
    private AppOrderIntegralMapper appOrderIntegralMapper;

    @Override
    public AppOrderIntegral selectAppOrderIntegralByTradeId(Long tradeId) {
        return appOrderIntegralMapper.selectAppOrderIntegralByTradeId(tradeId);
    }

    @Override
    public int insertAppOrderIntegral(AppOrderIntegral appOrderIntegral) {
        return appOrderIntegralMapper.insertAppOrderIntegral(appOrderIntegral);
    }
}
